<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common_include_for_server.jsp"%>
<link href="js/uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="js/uploadify/swfobject.js"></script>
<script type="text/javascript" src="js/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	var options = {
		//filebrowserBrowseUrl : '/<%=request.getContextPath()%>',
		//filebrowserImageBrowseUrl : '<%=request.getContextPath()%>',
		//filebrowserUploadUrl : '<%=request.getContextPath()%>/manage/upload.action',
		filebrowserImageUploadUrl : '<%=request.getContextPath()%>/manage/upload.action'
	};
	CKEDITOR.replace('hotProject.content', options);
	$( "#hotProject_displayTime" ).datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
<s:form action="hotProject!saveOrUpdateDo" method="post">
	<table border="1" width="100%">
		<tr>
			<th width="100px;">
				标题
			</th>
			<td>
				<s:textfield name="hotProject.title" value="%{hotProject.title}" size="50" />
			</td>
		</tr>
		<tr>
			<th>
				区域
			</th>
			<td>
					<s:iterator value="#application[@org.zhouhe.util.Constant@APPLICATION_KEY_REGION_LIST ]">
						<input id="region_${regionId }" name="regionIdList" type="checkbox" value="${regionId }" <s:if test="%{regionIdList.contains(regionId)}">checked='checked'</s:if> /><label for="region_${regionId }"><s:property value="name"/></label>
					</s:iterator>
			</td>
		</tr>
		<tr>
			<th>
				行业
			</th>
			<td>
				<select name="hotProject.industry.industryId">
					<option value="">---请选择---</option>
					<s:iterator value="#application[@org.zhouhe.util.Constant@APPLICATION_KEY_INDUSTRY_LIST ]">
						<option value="${industryId }" <s:if test="%{hotProject.industry.industryId == industryId}">selected</s:if>><s:property value="name"/></option>
					</s:iterator>
				</select>
			</td>
		</tr>
		<tr>
			<th>
				投资
			</th>
			<td>
				<select name="hotProject.investment.investmentId">
					<option value="">---请选择---</option>
					<s:iterator value="#application[@org.zhouhe.util.Constant@APPLICATION_KEY_INVESTMENT_LIST ]">
						<option value="${investmentId }" <s:if test="%{hotProject.investment.investmentId == investmentId}">selected</s:if>><s:property value="name"/></option>
					</s:iterator>
				</select>
			</td>
		</tr>
		<tr>
			<th>时间</th>
			<td><input id="hotProject_displayTime" name="hotProject.displayTime" value='<s:date name="hotProject.displayTime" format="yyyy-MM-dd"/>'/></td>
		</tr>
		<tr>
			<td colspan="2">
				<s:textarea id="hotProject_content" name="hotProject.content" rows="6" cols="60"></s:textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<s:hidden name="hotProject.hotProjectId" value="%{hotProject.hotProjectId}"></s:hidden>
				<s:hidden name="pageUtil.showPage" value="%{pageUtil.showPage}"></s:hidden>
				<s:submit value="提交"></s:submit>
			</td>
		</tr>
	</table>
</s:form>